package com.hxtec.polaris.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.persistence.*;
import lombok.Data;

/**
 * @author Caps
 * @date 2019/11/29
 */
@ApiModel(value = "com.hxtec.polaris.entity.ShopProductSaleAttrValue")
@Data
@Table(name = "shop_product_sale_attr_value")
public class ShopProductSaleAttrValue implements Serializable {
    /**
     * id
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 商品id
     */
    @Column(name = "product_id")
    @ApiModelProperty(value = "商品id")
    private Integer productId;

    /**
     * 销售属性id
     */
    @Column(name = "sale_attr_id")
    @ApiModelProperty(value = "销售属性id")
    private Integer saleAttrId;

    /**
     * 销售属性值名称
     */
    @Column(name = "sale_attr_value_name")
    @ApiModelProperty(value = "销售属性值名称")
    private String saleAttrValueName;

    @Transient
    private String isChecked;

    private static final long serialVersionUID = 1L;
}